$('.message a').click(function(){
   $('form').animate({height: "toggle", opacity: "toggle"}, "slow");
});

$(document).ready(function(){
    $(".username").change(function(){
	var uname = $(this).val();
	    $.ajax({
		type: "POST",
		url: "./check",
		data: "username="+ uname,
		success: function(msg){
			var a= "<font color=red><b>" + msg + "</b>"
				$(".status").html(a);
		}
	    }); 
	});
    });

